﻿Public Class FormThemBan
    Public _flag As Integer = 0
    Private Sub FormThemBan_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        cbLoaiBan.Text = "Chọn loại bàn"
        cbLoaiBan.Items.Add("1 - Bàn Bida thường")
        cbLoaiBan.Items.Add("2 - Bàn Bida lỗ")
        cbLoaiBan.Items.Add("3 - Bàn Bida carom 3 bảng")
    End Sub

    Private Sub btnThem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnThem.Click
        If (cbLoaiBan.SelectedIndex = -1) Then
            MessageBox.Show("Hãy chọn loại bàn", "Lỗi")
        Else
            _flag = 1
            Me.Close()

        End If
        
    End Sub

    Private Sub btnHuy_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnHuy.Click
        Me.Close()
    End Sub
End Class